if (self.CavalryLogger) { CavalryLogger.start_js(["MEigw"]); } __d("LoggedOutLocaleEventsClientLogger",["Banzai","BanzaiLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a,b){this.regInstance=b}var c=a.prototype;c.logLocaleEvent=function(a,c,d){a=a.getNode("change_language");if(a instanceof HTMLElement){a=a.dataset.locale;b("BanzaiLogger").create(b("Banzai").VITAL).log("LoggedOutLocaleEventsLoggerConfig",{event:"change_language_acquired",reg_instance:this.regInstance,surface:d,switch_info:{endLocale:a,step:c}})}};c.logMoreLanguage=function(a,c){b("BanzaiLogger").create(b("Banzai").VITAL).log("LoggedOutLocaleEventsLoggerConfig",{event:"more_language_clicked",reg_instance:this.regInstance,surface:c,switch_info:{step:a}})};c.logLocaleStepAcquired=function(a,c,d){b("BanzaiLogger").create(b("Banzai").VITAL).log("LoggedOutLocaleEventsLoggerConfig",{event:"step_locale_acquired",reg_instance:this.regInstance,surface:c,switch_info:{endLocale:d,step:a}})};return a}();e.exports=a}),null); __d("IorgMaskHeaderPrefillTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setMobileContext=function(a){this.$1.mobile_context=a;return this};c.setNumDigitsShown=function(a){this.$1.num_digits_shown=a;return this};c.setPhoneNumberLength=function(a){this.$1.phone_number_length=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setUnmaskingAssociatedIdentifier=function(a){this.$1.unmasking_associated_identifier=a;return this};c.setUnmaskingDatr=function(a){this.$1.unmasking_datr=a;return this};c.setUnmaskingDatrAge=function(a){this.$1.unmasking_datr_age=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={event:!0,mobile_context:!0,num_digits_shown:!0,phone_number_length:!0,time:!0,unmasking_associated_identifier:!0,unmasking_datr:!0,unmasking_datr_age:!0,vc:!0,weight:!0};e.exports=a}),null); __d("LoginServicePasswordEncryptDecryptEventTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:LoginServicePasswordEncryptDecryptEventLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:LoginServicePasswordEncryptDecryptEventLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:LoginServicePasswordEncryptDecryptEventLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAccountID=function(a){this.$1.account_id=a;return this};c.setCredentialsType=function(a){this.$1.credentials_type=a;return this};c.setDebugInfo=function(a){this.$1.debug_info=a;return this};c.setDecryptMethod=function(a){this.$1.decrypt_method=a;return this};c.setDeviceID=function(a){this.$1.device_id=a;return this};c.setError=function(a){this.$1.error=a;return this};c.setErrorMessage=function(a){this.$1.error_message=a;return this};c.setPasswordEncryptionVersion=function(a){this.$1.password_encryption_version=a;return this};c.setPasswordTag=function(a){this.$1.password_tag=a;return this};c.setPasswordTimestamp=function(a){this.$1.password_timestamp=a;return this};c.setStacktrace=function(a){this.$1.stacktrace=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setTime=function(a){this.$1.time=a;return this};c.setUniverse=function(a){this.$1.universe=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={account_id:!0,credentials_type:!0,debug_info:!0,decrypt_method:!0,device_id:!0,error:!0,error_message:!0,password_encryption_version:!0,password_tag:!0,password_timestamp:!0,stacktrace:!0,time:!0,universe:!0,weight:!0};e.exports=a}),null); __d("ZeroJioHeaderTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAutoConfMatch=function(a){this.$1.auto_conf_match=a;return this};c.setAutoConfValidationParams=function(a){this.$1.auto_conf_validation_params=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setCarrierID=function(a){this.$1.carrier_id=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setHeaderSignature=function(a){this.$1.header_signature=a;return this};c.setJioAPISurface=function(a){this.$1.jio_api_surface=a;return this};c.setPossibleSoftmatchUid=function(a){this.$1.possible_softmatch_uid=a;return this};c.setResponseTime=function(a){this.$1.response_time=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setTimeToPrefill=function(a){this.$1.time_to_prefill=a;return this};c.setUserRegisterPhoneNumber=function(a){this.$1.user_register_phone_number=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={auto_conf_match:!0,auto_conf_validation_params:!0,carrier_id:!0,event:!0,header_signature:!0,jio_api_surface:!0,possible_softmatch_uid:!0,response_time:!0,time:!0,time_to_prefill:!0,user_register_phone_number:!0,vc:!0,weight:!0};e.exports=a}),null); __d("LoginNativeButton",["BanzaiLogger","DOM"],(function(a,b,c,d,e,f){"use strict";var g="native_login_button_click_client";e.exports={init:function(a,c){b("DOM").listen(a,"click",null,function(a){this._logClick(c)}.bind(this))},_logClick:function(a){var c=b("BanzaiLogger").create({retry:!0,delay:0});c.log("PlatformLoggedOutEventsLoggerConfig",{event:g,logger_id:a})}}}),null); __d("MLoggedOutBannerGooglePlayRedirectWithFallback",["BanzaiLogger","DirectDownloadEvents","DOM","UserAgent","clearInterval","clearTimeout","goURI","setInterval","setTimeout"],(function(a,b,c,d,e,f){__p&&__p();var g=200,h=300,i=350,j=1500,k=2500;a=function(){"use strict";__p&&__p();function a(a){this.$1=a.button,this.$2=a.native_app_url,this.$3=a.fallback_url,this.$4=a.logging_data,this.$5=null,this.$6=null,this.$7=null,this.$8=null,this.$9=0,this.$10=!0,this.$11=b("DOM").create("iframe",{style:{display:"none"}}),b("DOM").insertAfter(this.$1,this.$11),b("BanzaiLogger").create({signal:!0,delay:1e3}).log("DirectDownloadLoggerConfig",{event:b("DirectDownloadEvents").logged_out_banner_impression_client,app_referrer:this.$4.app_referrer,app:this.$4.app,country:this.$4.country}),this.$12()}var c=a.prototype;c.$12=function(){var a=this;this.$1.addEventListener("click",function(){a.$13()});this.$10=!0};c.$13=function(){this.$10&&(this.$10=!1,this.$14(),this.$15())};c.$15=function(){var a=this;a.$9=Date.now();var c=function(){a.$16(a.$3)},d=function(){a.$17(a.$2,c)},e=function(){a.$6=b("setTimeout")(d,j),a.$18(a.$2,c)};a.$5=b("setInterval")(function(){a.$19()?a.$20():a.$9=Date.now()},g);b("UserAgent").isBrowser("Firefox")?e():d()};c.$17=function(a,c){__p&&__p();var d=this;if(d.$19())return;b("clearTimeout")(d.$8);var e=!1;d.$11.src="";d.$11.onload=function(){e=!0,b("BanzaiLogger").create({signal:!0,delay:1e3}).log("DirectDownloadLoggerConfig",{event:b("DirectDownloadEvents").logged_out_banner_google_play_redirect_failed,app_referrer:d.$4.app_referrer,app:d.$4.app,country:d.$4.country}),c()};d.$11.src=a;d.$8=b("setTimeout")(function(){var b=d.$11.contentDocument||d.$11.contentWindow.document;b.readyState=="complete"&&!e&&d.$18(a,c)},i)};c.$18=function(a,c){if(this.$19())return;this.$7=b("setTimeout")(c,k);this.$16(a)};c.$20=function(){b("clearInterval")(this.$5),b("clearTimeout")(this.$6),b("clearTimeout")(this.$7),b("clearTimeout")(this.$8)};c.$19=function(){if(document.hidden||Date.now()-this.$9>=h){this.$10=!0;return!0}return!1};c.$16=function(a){if(this.$19())return;b("goURI")(a)};c.$14=function(){this.$4||(this.$4={app_referrer:"",app:"",country:""}),b("BanzaiLogger").create({signal:!0,delay:1e3}).log("DirectDownloadLoggerConfig",{event:b("DirectDownloadEvents").logged_out_banner_upgrade_button_click,app_referrer:this.$4.app_referrer,app:this.$4.app,country:this.$4.country})};return a}();e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/e1uPfGqT9n9/ */ __d("blakejs-1.1.0",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={};var g={exports:a};function h(){__p&&__p();var a="Input must be an string, Buffer or Uint8Array";function b(b){var c;if(b instanceof Uint8Array)c=b;else if(b instanceof Buffer)c=new Uint8Array(b);else if(typeof b==="string")c=new Uint8Array(Buffer.from(b,"utf8"));else throw new Error(a);return c}function c(a){return Array.prototype.map.call(a,function(a){return(a<16?"0":"")+a.toString(16)}).join("")}function d(a){return(4294967296+a).toString(16).substring(1)}function e(a,b,c){var e="\n"+a+" = ";for(var f=0;f=4294967296&&c++;a[b]=d;a[b+1]=c}function c(a,b,c,d){var e=a[b]+c;c<0&&(e+=4294967296);c=a[b+1]+d;e>=4294967296&&c++;a[b]=e;a[b+1]=c}function d(a,b){return a[b]^a[b+1]<<8^a[b+2]<<16^a[b+3]<<24}function e(a,d,e,f,g,h){__p&&__p();var j=l[g];g=l[g+1];var k=l[h];h=l[h+1];b(i,a,d);c(i,a,j,g);j=i[f]^i[a];g=i[f+1]^i[a+1];i[f]=g;i[f+1]=j;b(i,e,f);j=i[d]^i[e];g=i[d+1]^i[e+1];i[d]=j>>>24^g<<8;i[d+1]=g>>>24^j<<8;b(i,a,d);c(i,a,k,h);j=i[f]^i[a];g=i[f+1]^i[a+1];i[f]=j>>>16^g<<16;i[f+1]=g>>>16^j<<16;b(i,e,f);j=i[d]^i[e];g=i[d+1]^i[e+1];i[d]=g>>>31^j<<1;i[d+1]=j>>>31^g<<1}var f=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),g=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],h=new Uint8Array(g.map(function(a){return a*2})),i=new Uint32Array(32),l=new Uint32Array(32);function m(a,b){__p&&__p();var c=0;for(c=0;c<16;c++)i[c]=a.h[c],i[c+16]=f[c];i[24]=i[24]^a.t;i[25]=i[25]^a.t/4294967296;b&&(i[28]=~i[28],i[29]=~i[29]);for(c=0;c<32;c++)l[c]=d(a.b,4*c);for(c=0;c<12;c++)e(0,8,16,24,h[c*16+0],h[c*16+1]),e(2,10,18,26,h[c*16+2],h[c*16+3]),e(4,12,20,28,h[c*16+4],h[c*16+5]),e(6,14,22,30,h[c*16+6],h[c*16+7]),e(0,10,20,30,h[c*16+8],h[c*16+9]),e(2,12,22,24,h[c*16+10],h[c*16+11]),e(4,14,16,26,h[c*16+12],h[c*16+13]),e(6,8,18,28,h[c*16+14],h[c*16+15]);for(c=0;c<16;c++)a.h[c]=a.h[c]^i[c]^i[c+16]}function n(a,b){__p&&__p();if(a===0||a>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(b&&b.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");var c={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:a};for(var d=0;d<16;d++)c.h[d]=f[d];d=b?b.length:0;c.h[0]^=16842752^d<<8^a;b&&(o(c,b),c.c=128);return c}function o(a,b){for(var c=0;c>2]>>8*(c&3);return b}function q(b,c,d){d=d||64;b=a.normalizeInput(b);d=n(d,c);o(d,b);return p(d)}function r(b,c,d){b=q(b,c,d);return a.toHex(b)}k.exports={blake2b:q,blake2bHex:r,blake2bInit:n,blake2bUpdate:o,blake2bFinal:p}}var m=!1,n=function(){m||(m=!0,l());return k.exports};c={};var o={exports:c};function p(){__p&&__p();var a=j();function b(a,b){return a[b]^a[b+1]<<8^a[b+2]<<16^a[b+3]<<24}function c(a,b,c,e,f,h){g[a]=g[a]+g[b]+f,g[e]=d(g[e]^g[a],16),g[c]=g[c]+g[e],g[b]=d(g[b]^g[c],12),g[a]=g[a]+g[b]+h,g[e]=d(g[e]^g[a],8),g[c]=g[c]+g[e],g[b]=d(g[b]^g[c],7)}function d(a,b){return a>>>b^a<<32-b}var e=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),g=new Uint32Array(16),h=new Uint32Array(16);function i(a,d){__p&&__p();var i=0;for(i=0;i<8;i++)g[i]=a.h[i],g[i+8]=e[i];g[12]^=a.t;g[13]^=a.t/4294967296;d&&(g[14]=~g[14]);for(i=0;i<16;i++)h[i]=b(a.b,4*i);for(i=0;i<10;i++)c(0,4,8,12,h[f[i*16+0]],h[f[i*16+1]]),c(1,5,9,13,h[f[i*16+2]],h[f[i*16+3]]),c(2,6,10,14,h[f[i*16+4]],h[f[i*16+5]]),c(3,7,11,15,h[f[i*16+6]],h[f[i*16+7]]),c(0,5,10,15,h[f[i*16+8]],h[f[i*16+9]]),c(1,6,11,12,h[f[i*16+10]],h[f[i*16+11]]),c(2,7,8,13,h[f[i*16+12]],h[f[i*16+13]]),c(3,4,9,14,h[f[i*16+14]],h[f[i*16+15]]);for(i=0;i<8;i++)a.h[i]^=g[i]^g[i+8]}function k(a,b){if(!(a>0&&a<=32))throw new Error("Incorrect output length, should be in [1, 32]");var c=b?b.length:0;if(b&&!(c>0&&c<=32))throw new Error("Incorrect key length, should be in [1, 32]");var d={h:new Uint32Array(e),b:new Uint32Array(64),c:0,t:0,outlen:a};d.h[0]^=16842752^c<<8^a;c>0&&(l(d,b),d.c=64);return d}function l(a,b){for(var c=0;c>2]>>8*(c&3)&255;return b}function n(b,c,d){d=d||32;b=a.normalizeInput(b);d=k(d,c);l(d,b);return m(d)}function p(b,c,d){b=n(b,c,d);return a.toHex(b)}o.exports={blake2s:n,blake2sHex:p,blake2sInit:k,blake2sUpdate:l,blake2sFinal:m}}var q=!1,r=function(){q||(q=!0,p());return o.exports};d={};var s={exports:d};function t(){var a=n(),b=r();s.exports={blake2b:a.blake2b,blake2bHex:a.blake2bHex,blake2bInit:a.blake2bInit,blake2bUpdate:a.blake2bUpdate,blake2bFinal:a.blake2bFinal,blake2s:b.blake2s,blake2sHex:b.blake2sHex,blake2sInit:b.blake2sInit,blake2sUpdate:b.blake2sUpdate,blake2sFinal:b.blake2sFinal}}var u=!1,v=function(){u||(u=!0,t());return s.exports};f=function(a){switch(a){case void 0:return v();case"/blake2b":return n()}};e.exports=f}),null); /** * License: https://www.facebook.com/legal/license/OKBVmODmb-W/ */ __d("tweetnacl-1.0.1",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={};var g={exports:a};function h(){__p&&__p();(function(a){__p&&__p();var b=function(a){var b,c=new Float64Array(16);if(a)for(b=0;b>24&255,a[b+1]=c>>16&255,a[b+2]=c>>8&255,a[b+3]=c&255,a[b+4]=d>>24&255,a[b+5]=d>>16&255,a[b+6]=d>>8&255,a[b+7]=d&255}function o(a,b,c,d,e){var f,g=0;for(f=0;f>>8)-1}function p(a,b,c,d){return o(a,b,c,d,16)}function q(a,b,c,d){return o(a,b,c,d,32)}function r(a,b,c,d){__p&&__p();var e=d[0]&255|(d[1]&255)<<8|(d[2]&255)<<16|(d[3]&255)<<24,f=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,g=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,h=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,i=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,j=d[4]&255|(d[5]&255)<<8|(d[6]&255)<<16|(d[7]&255)<<24,k=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,l=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,m=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24;b=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24;var n=d[8]&255|(d[9]&255)<<8|(d[10]&255)<<16|(d[11]&255)<<24,o=c[16]&255|(c[17]&255)<<8|(c[18]&255)<<16|(c[19]&255)<<24,p=c[20]&255|(c[21]&255)<<8|(c[22]&255)<<16|(c[23]&255)<<24,q=c[24]&255|(c[25]&255)<<8|(c[26]&255)<<16|(c[27]&255)<<24;c=c[28]&255|(c[29]&255)<<8|(c[30]&255)<<16|(c[31]&255)<<24;d=d[12]&255|(d[13]&255)<<8|(d[14]&255)<<16|(d[15]&255)<<24;var r=e,s=f,t=g,u=h,v=i,w=j,x=k,y=l,z=m,A=b,B=n,C=o,D=p,E=q,F=c,G=d,H;for(var I=0;I<20;I+=2)H=r+D|0,v^=H<<7|H>>>32-7,H=v+r|0,z^=H<<9|H>>>32-9,H=z+v|0,D^=H<<13|H>>>32-13,H=D+z|0,r^=H<<18|H>>>32-18,H=w+s|0,A^=H<<7|H>>>32-7,H=A+w|0,E^=H<<9|H>>>32-9,H=E+A|0,s^=H<<13|H>>>32-13,H=s+E|0,w^=H<<18|H>>>32-18,H=B+x|0,F^=H<<7|H>>>32-7,H=F+B|0,t^=H<<9|H>>>32-9,H=t+F|0,x^=H<<13|H>>>32-13,H=x+t|0,B^=H<<18|H>>>32-18,H=G+C|0,u^=H<<7|H>>>32-7,H=u+G|0,y^=H<<9|H>>>32-9,H=y+u|0,C^=H<<13|H>>>32-13,H=C+y|0,G^=H<<18|H>>>32-18,H=r+u|0,s^=H<<7|H>>>32-7,H=s+r|0,t^=H<<9|H>>>32-9,H=t+s|0,u^=H<<13|H>>>32-13,H=u+t|0,r^=H<<18|H>>>32-18,H=w+v|0,x^=H<<7|H>>>32-7,H=x+w|0,y^=H<<9|H>>>32-9,H=y+x|0,v^=H<<13|H>>>32-13,H=v+y|0,w^=H<<18|H>>>32-18,H=B+A|0,C^=H<<7|H>>>32-7,H=C+B|0,z^=H<<9|H>>>32-9,H=z+C|0,A^=H<<13|H>>>32-13,H=A+z|0,B^=H<<18|H>>>32-18,H=G+F|0,D^=H<<7|H>>>32-7,H=D+G|0,E^=H<<9|H>>>32-9,H=E+D|0,F^=H<<13|H>>>32-13,H=F+E|0,G^=H<<18|H>>>32-18;r=r+e|0;s=s+f|0;t=t+g|0;u=u+h|0;v=v+i|0;w=w+j|0;x=x+k|0;y=y+l|0;z=z+m|0;A=A+b|0;B=B+n|0;C=C+o|0;D=D+p|0;E=E+q|0;F=F+c|0;G=G+d|0;a[0]=r>>>0&255;a[1]=r>>>8&255;a[2]=r>>>16&255;a[3]=r>>>24&255;a[4]=s>>>0&255;a[5]=s>>>8&255;a[6]=s>>>16&255;a[7]=s>>>24&255;a[8]=t>>>0&255;a[9]=t>>>8&255;a[10]=t>>>16&255;a[11]=t>>>24&255;a[12]=u>>>0&255;a[13]=u>>>8&255;a[14]=u>>>16&255;a[15]=u>>>24&255;a[16]=v>>>0&255;a[17]=v>>>8&255;a[18]=v>>>16&255;a[19]=v>>>24&255;a[20]=w>>>0&255;a[21]=w>>>8&255;a[22]=w>>>16&255;a[23]=w>>>24&255;a[24]=x>>>0&255;a[25]=x>>>8&255;a[26]=x>>>16&255;a[27]=x>>>24&255;a[28]=y>>>0&255;a[29]=y>>>8&255;a[30]=y>>>16&255;a[31]=y>>>24&255;a[32]=z>>>0&255;a[33]=z>>>8&255;a[34]=z>>>16&255;a[35]=z>>>24&255;a[36]=A>>>0&255;a[37]=A>>>8&255;a[38]=A>>>16&255;a[39]=A>>>24&255;a[40]=B>>>0&255;a[41]=B>>>8&255;a[42]=B>>>16&255;a[43]=B>>>24&255;a[44]=C>>>0&255;a[45]=C>>>8&255;a[46]=C>>>16&255;a[47]=C>>>24&255;a[48]=D>>>0&255;a[49]=D>>>8&255;a[50]=D>>>16&255;a[51]=D>>>24&255;a[52]=E>>>0&255;a[53]=E>>>8&255;a[54]=E>>>16&255;a[55]=E>>>24&255;a[56]=F>>>0&255;a[57]=F>>>8&255;a[58]=F>>>16&255;a[59]=F>>>24&255;a[60]=G>>>0&255;a[61]=G>>>8&255;a[62]=G>>>16&255;a[63]=G>>>24&255}function s(a,b,c,d){__p&&__p();var e=d[0]&255|(d[1]&255)<<8|(d[2]&255)<<16|(d[3]&255)<<24,f=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,g=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,h=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,i=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,j=d[4]&255|(d[5]&255)<<8|(d[6]&255)<<16|(d[7]&255)<<24,k=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,l=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,m=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24;b=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24;var n=d[8]&255|(d[9]&255)<<8|(d[10]&255)<<16|(d[11]&255)<<24,o=c[16]&255|(c[17]&255)<<8|(c[18]&255)<<16|(c[19]&255)<<24,p=c[20]&255|(c[21]&255)<<8|(c[22]&255)<<16|(c[23]&255)<<24,q=c[24]&255|(c[25]&255)<<8|(c[26]&255)<<16|(c[27]&255)<<24;c=c[28]&255|(c[29]&255)<<8|(c[30]&255)<<16|(c[31]&255)<<24;d=d[12]&255|(d[13]&255)<<8|(d[14]&255)<<16|(d[15]&255)<<24;e=e;f=f;g=g;h=h;i=i;j=j;k=k;l=l;m=m;b=b;n=n;o=o;p=p;q=q;c=c;d=d;var r;for(var s=0;s<20;s+=2)r=e+p|0,i^=r<<7|r>>>32-7,r=i+e|0,m^=r<<9|r>>>32-9,r=m+i|0,p^=r<<13|r>>>32-13,r=p+m|0,e^=r<<18|r>>>32-18,r=j+f|0,b^=r<<7|r>>>32-7,r=b+j|0,q^=r<<9|r>>>32-9,r=q+b|0,f^=r<<13|r>>>32-13,r=f+q|0,j^=r<<18|r>>>32-18,r=n+k|0,c^=r<<7|r>>>32-7,r=c+n|0,g^=r<<9|r>>>32-9,r=g+c|0,k^=r<<13|r>>>32-13,r=k+g|0,n^=r<<18|r>>>32-18,r=d+o|0,h^=r<<7|r>>>32-7,r=h+d|0,l^=r<<9|r>>>32-9,r=l+h|0,o^=r<<13|r>>>32-13,r=o+l|0,d^=r<<18|r>>>32-18,r=e+h|0,f^=r<<7|r>>>32-7,r=f+e|0,g^=r<<9|r>>>32-9,r=g+f|0,h^=r<<13|r>>>32-13,r=h+g|0,e^=r<<18|r>>>32-18,r=j+i|0,k^=r<<7|r>>>32-7,r=k+j|0,l^=r<<9|r>>>32-9,r=l+k|0,i^=r<<13|r>>>32-13,r=i+l|0,j^=r<<18|r>>>32-18,r=n+b|0,o^=r<<7|r>>>32-7,r=o+n|0,m^=r<<9|r>>>32-9,r=m+o|0,b^=r<<13|r>>>32-13,r=b+m|0,n^=r<<18|r>>>32-18,r=d+c|0,p^=r<<7|r>>>32-7,r=p+d|0,q^=r<<9|r>>>32-9,r=q+p|0,c^=r<<13|r>>>32-13,r=c+q|0,d^=r<<18|r>>>32-18;a[0]=e>>>0&255;a[1]=e>>>8&255;a[2]=e>>>16&255;a[3]=e>>>24&255;a[4]=j>>>0&255;a[5]=j>>>8&255;a[6]=j>>>16&255;a[7]=j>>>24&255;a[8]=n>>>0&255;a[9]=n>>>8&255;a[10]=n>>>16&255;a[11]=n>>>24&255;a[12]=d>>>0&255;a[13]=d>>>8&255;a[14]=d>>>16&255;a[15]=d>>>24&255;a[16]=k>>>0&255;a[17]=k>>>8&255;a[18]=k>>>16&255;a[19]=k>>>24&255;a[20]=l>>>0&255;a[21]=l>>>8&255;a[22]=l>>>16&255;a[23]=l>>>24&255;a[24]=m>>>0&255;a[25]=m>>>8&255;a[26]=m>>>16&255;a[27]=m>>>24&255;a[28]=b>>>0&255;a[29]=b>>>8&255;a[30]=b>>>16&255;a[31]=b>>>24&255}function t(a,b,c,d){r(a,b,c,d)}function u(a,b,c,d){s(a,b,c,d)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(a,b,c,d,e,f,g){__p&&__p();var h=new Uint8Array(16),i=new Uint8Array(64),j;for(j=0;j<16;j++)h[j]=0;for(j=0;j<8;j++)h[j]=f[j];while(e>=64){t(i,h,g,v);for(j=0;j<64;j++)a[b+j]=c[d+j]^i[j];f=1;for(j=8;j<16;j++)f=f+(h[j]&255)|0,h[j]=f&255,f>>>=8;e-=64;b+=64;d+=64}if(e>0){t(i,h,g,v);for(j=0;j=64){t(g,f,e,v);for(h=0;h<64;h++)a[b+h]=g[h];d=1;for(h=8;h<16;h++)d=d+(f[h]&255)|0,f[h]=d&255,d>>>=8;c-=64;b+=64}if(c>0){t(g,f,e,v);for(h=0;h>>13|c<<3)&8191;b=a[4]&255|(a[5]&255)<<8;this.r[2]=(c>>>10|b<<6)&7939;c=a[6]&255|(a[7]&255)<<8;this.r[3]=(b>>>7|c<<9)&8191;b=a[8]&255|(a[9]&255)<<8;this.r[4]=(c>>>4|b<<12)&255;this.r[5]=b>>>1&8190;c=a[10]&255|(a[11]&255)<<8;this.r[6]=(b>>>14|c<<2)&8191;b=a[12]&255|(a[13]&255)<<8;this.r[7]=(c>>>11|b<<5)&8065;c=a[14]&255|(a[15]&255)<<8;this.r[8]=(b>>>8|c<<8)&8191;this.r[9]=c>>>5&127;this.pad[0]=a[16]&255|(a[17]&255)<<8;this.pad[1]=a[18]&255|(a[19]&255)<<8;this.pad[2]=a[20]&255|(a[21]&255)<<8;this.pad[3]=a[22]&255|(a[23]&255)<<8;this.pad[4]=a[24]&255|(a[25]&255)<<8;this.pad[5]=a[26]&255|(a[27]&255)<<8;this.pad[6]=a[28]&255|(a[29]&255)<<8;this.pad[7]=a[30]&255|(a[31]&255)<<8};A.prototype.blocks=function(a,b,c){__p&&__p();var d=this.fin?0:1<<11,e,f,g,h,i,j,k,l,m,n,o,p=this.h[0],q=this.h[1],r=this.h[2],s=this.h[3],t=this.h[4],u=this.h[5],v=this.h[6],w=this.h[7],x=this.h[8],y=this.h[9],z=this.r[0],A=this.r[1],B=this.r[2],C=this.r[3],D=this.r[4],E=this.r[5],F=this.r[6],G=this.r[7],H=this.r[8],I=this.r[9];while(c>=16)e=a[b+0]&255|(a[b+1]&255)<<8,p+=e&8191,f=a[b+2]&255|(a[b+3]&255)<<8,q+=(e>>>13|f<<3)&8191,e=a[b+4]&255|(a[b+5]&255)<<8,r+=(f>>>10|e<<6)&8191,f=a[b+6]&255|(a[b+7]&255)<<8,s+=(e>>>7|f<<9)&8191,e=a[b+8]&255|(a[b+9]&255)<<8,t+=(f>>>4|e<<12)&8191,u+=e>>>1&8191,f=a[b+10]&255|(a[b+11]&255)<<8,v+=(e>>>14|f<<2)&8191,e=a[b+12]&255|(a[b+13]&255)<<8,w+=(f>>>11|e<<5)&8191,f=a[b+14]&255|(a[b+15]&255)<<8,x+=(e>>>8|f<<8)&8191,y+=f>>>5|d,e=0,f=e,f+=p*z,f+=q*(5*I),f+=r*(5*H),f+=s*(5*G),f+=t*(5*F),e=f>>>13,f&=8191,f+=u*(5*E),f+=v*(5*D),f+=w*(5*C),f+=x*(5*B),f+=y*(5*A),e+=f>>>13,f&=8191,g=e,g+=p*A,g+=q*z,g+=r*(5*I),g+=s*(5*H),g+=t*(5*G),e=g>>>13,g&=8191,g+=u*(5*F),g+=v*(5*E),g+=w*(5*D),g+=x*(5*C),g+=y*(5*B),e+=g>>>13,g&=8191,h=e,h+=p*B,h+=q*A,h+=r*z,h+=s*(5*I),h+=t*(5*H),e=h>>>13,h&=8191,h+=u*(5*G),h+=v*(5*F),h+=w*(5*E),h+=x*(5*D),h+=y*(5*C),e+=h>>>13,h&=8191,i=e,i+=p*C,i+=q*B,i+=r*A,i+=s*z,i+=t*(5*I),e=i>>>13,i&=8191,i+=u*(5*H),i+=v*(5*G),i+=w*(5*F),i+=x*(5*E),i+=y*(5*D),e+=i>>>13,i&=8191,j=e,j+=p*D,j+=q*C,j+=r*B,j+=s*A,j+=t*z,e=j>>>13,j&=8191,j+=u*(5*I),j+=v*(5*H),j+=w*(5*G),j+=x*(5*F),j+=y*(5*E),e+=j>>>13,j&=8191,k=e,k+=p*E,k+=q*D,k+=r*C,k+=s*B,k+=t*A,e=k>>>13,k&=8191,k+=u*z,k+=v*(5*I),k+=w*(5*H),k+=x*(5*G),k+=y*(5*F),e+=k>>>13,k&=8191,l=e,l+=p*F,l+=q*E,l+=r*D,l+=s*C,l+=t*B,e=l>>>13,l&=8191,l+=u*A,l+=v*z,l+=w*(5*I),l+=x*(5*H),l+=y*(5*G),e+=l>>>13,l&=8191,m=e,m+=p*G,m+=q*F,m+=r*E,m+=s*D,m+=t*C,e=m>>>13,m&=8191,m+=u*B,m+=v*A,m+=w*z,m+=x*(5*I),m+=y*(5*H),e+=m>>>13,m&=8191,n=e,n+=p*H,n+=q*G,n+=r*F,n+=s*E,n+=t*D,e=n>>>13,n&=8191,n+=u*C,n+=v*B,n+=w*A,n+=x*z,n+=y*(5*I),e+=n>>>13,n&=8191,o=e,o+=p*I,o+=q*H,o+=r*G,o+=s*F,o+=t*E,e=o>>>13,o&=8191,o+=u*D,o+=v*C,o+=w*B,o+=x*A,o+=y*z,e+=o>>>13,o&=8191,e=(e<<2)+e|0,e=e+f|0,f=e&8191,e=e>>>13,g+=e,p=f,q=g,r=h,s=i,t=j,u=k,v=l,w=m,x=n,y=o,b+=16,c-=16;this.h[0]=p;this.h[1]=q;this.h[2]=r;this.h[3]=s;this.h[4]=t;this.h[5]=u;this.h[6]=v;this.h[7]=w;this.h[8]=x;this.h[9]=y};A.prototype.finish=function(a,b){__p&&__p();var c=new Uint16Array(10),d,e;if(this.leftover){e=this.leftover;this.buffer[e++]=1;for(;e<16;e++)this.buffer[e]=0;this.fin=1;this.blocks(this.buffer,0,16)}d=this.h[1]>>>13;this.h[1]&=8191;for(e=2;e<10;e++)this.h[e]+=d,d=this.h[e]>>>13,this.h[e]&=8191;this.h[0]+=d*5;d=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=d;d=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=d;c[0]=this.h[0]+5;d=c[0]>>>13;c[0]&=8191;for(e=1;e<10;e++)c[e]=this.h[e]+d,d=c[e]>>>13,c[e]&=8191;c[9]-=1<<13;d=(d^1)-1;for(e=0;e<10;e++)c[e]&=d;d=~d;for(e=0;e<10;e++)this.h[e]=this.h[e]&d|c[e];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;c=this.h[0]+this.pad[0];this.h[0]=c&65535;for(e=1;e<8;e++)c=(this.h[e]+this.pad[e]|0)+(c>>>16)|0,this.h[e]=c&65535;a[b+0]=this.h[0]>>>0&255;a[b+1]=this.h[0]>>>8&255;a[b+2]=this.h[1]>>>0&255;a[b+3]=this.h[1]>>>8&255;a[b+4]=this.h[2]>>>0&255;a[b+5]=this.h[2]>>>8&255;a[b+6]=this.h[3]>>>0&255;a[b+7]=this.h[3]>>>8&255;a[b+8]=this.h[4]>>>0&255;a[b+9]=this.h[4]>>>8&255;a[b+10]=this.h[5]>>>0&255;a[b+11]=this.h[5]>>>8&255;a[b+12]=this.h[6]>>>0&255;a[b+13]=this.h[6]>>>8&255;a[b+14]=this.h[7]>>>0&255;a[b+15]=this.h[7]>>>8&255};A.prototype.update=function(a,b,c){__p&&__p();var d,e;if(this.leftover){e=16-this.leftover;e>c&&(e=c);for(d=0;d=16&&(e=c-c%16,this.blocks(a,b,e),b+=e,c-=e);if(c){for(d=0;d>16&1),f[d-1]&=65535;f[15]=g[15]-32767-(f[14]>>16&1);e=f[15]>>16&1;f[14]&=65535;H(g,f,1-e)}for(d=0;d<16;d++)a[2*d]=g[d]&255,a[2*d+1]=g[d]>>8}function J(a,b){var c=new Uint8Array(32),d=new Uint8Array(32);I(c,a);I(d,b);return q(c,0,d,0)}function K(a){var b=new Uint8Array(32);I(b,a);return b[0]&1}function L(a,b){var c;for(c=0;c<16;c++)a[c]=b[2*c]+(b[2*c+1]<<8);a[15]&=32767}function M(a,b,c){for(var d=0;d<16;d++)a[d]=b[d]+c[d]}function N(a,b,c){for(var d=0;d<16;d++)a[d]=b[d]-c[d]}function O(a,b,c){__p&&__p();var d,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=c[0],K=c[1],L=c[2],M=c[3],N=c[4],O=c[5],P=c[6],Q=c[7],R=c[8],S=c[9],T=c[10],U=c[11],V=c[12],W=c[13],X=c[14];c=c[15];d=b[0];e+=d*J;f+=d*K;g+=d*L;h+=d*M;i+=d*N;j+=d*O;k+=d*P;l+=d*Q;m+=d*R;n+=d*S;o+=d*T;p+=d*U;q+=d*V;r+=d*W;s+=d*X;t+=d*c;d=b[1];f+=d*J;g+=d*K;h+=d*L;i+=d*M;j+=d*N;k+=d*O;l+=d*P;m+=d*Q;n+=d*R;o+=d*S;p+=d*T;q+=d*U;r+=d*V;s+=d*W;t+=d*X;u+=d*c;d=b[2];g+=d*J;h+=d*K;i+=d*L;j+=d*M;k+=d*N;l+=d*O;m+=d*P;n+=d*Q;o+=d*R;p+=d*S;q+=d*T;r+=d*U;s+=d*V;t+=d*W;u+=d*X;v+=d*c;d=b[3];h+=d*J;i+=d*K;j+=d*L;k+=d*M;l+=d*N;m+=d*O;n+=d*P;o+=d*Q;p+=d*R;q+=d*S;r+=d*T;s+=d*U;t+=d*V;u+=d*W;v+=d*X;w+=d*c;d=b[4];i+=d*J;j+=d*K;k+=d*L;l+=d*M;m+=d*N;n+=d*O;o+=d*P;p+=d*Q;q+=d*R;r+=d*S;s+=d*T;t+=d*U;u+=d*V;v+=d*W;w+=d*X;x+=d*c;d=b[5];j+=d*J;k+=d*K;l+=d*L;m+=d*M;n+=d*N;o+=d*O;p+=d*P;q+=d*Q;r+=d*R;s+=d*S;t+=d*T;u+=d*U;v+=d*V;w+=d*W;x+=d*X;y+=d*c;d=b[6];k+=d*J;l+=d*K;m+=d*L;n+=d*M;o+=d*N;p+=d*O;q+=d*P;r+=d*Q;s+=d*R;t+=d*S;u+=d*T;v+=d*U;w+=d*V;x+=d*W;y+=d*X;z+=d*c;d=b[7];l+=d*J;m+=d*K;n+=d*L;o+=d*M;p+=d*N;q+=d*O;r+=d*P;s+=d*Q;t+=d*R;u+=d*S;v+=d*T;w+=d*U;x+=d*V;y+=d*W;z+=d*X;A+=d*c;d=b[8];m+=d*J;n+=d*K;o+=d*L;p+=d*M;q+=d*N;r+=d*O;s+=d*P;t+=d*Q;u+=d*R;v+=d*S;w+=d*T;x+=d*U;y+=d*V;z+=d*W;A+=d*X;B+=d*c;d=b[9];n+=d*J;o+=d*K;p+=d*L;q+=d*M;r+=d*N;s+=d*O;t+=d*P;u+=d*Q;v+=d*R;w+=d*S;x+=d*T;y+=d*U;z+=d*V;A+=d*W;B+=d*X;C+=d*c;d=b[10];o+=d*J;p+=d*K;q+=d*L;r+=d*M;s+=d*N;t+=d*O;u+=d*P;v+=d*Q;w+=d*R;x+=d*S;y+=d*T;z+=d*U;A+=d*V;B+=d*W;C+=d*X;D+=d*c;d=b[11];p+=d*J;q+=d*K;r+=d*L;s+=d*M;t+=d*N;u+=d*O;v+=d*P;w+=d*Q;x+=d*R;y+=d*S;z+=d*T;A+=d*U;B+=d*V;C+=d*W;D+=d*X;E+=d*c;d=b[12];q+=d*J;r+=d*K;s+=d*L;t+=d*M;u+=d*N;v+=d*O;w+=d*P;x+=d*Q;y+=d*R;z+=d*S;A+=d*T;B+=d*U;C+=d*V;D+=d*W;E+=d*X;F+=d*c;d=b[13];r+=d*J;s+=d*K;t+=d*L;u+=d*M;v+=d*N;w+=d*O;x+=d*P;y+=d*Q;z+=d*R;A+=d*S;B+=d*T;C+=d*U;D+=d*V;E+=d*W;F+=d*X;G+=d*c;d=b[14];s+=d*J;t+=d*K;u+=d*L;v+=d*M;w+=d*N;x+=d*O;y+=d*P;z+=d*Q;A+=d*R;B+=d*S;C+=d*T;D+=d*U;E+=d*V;F+=d*W;G+=d*X;H+=d*c;d=b[15];t+=d*J;u+=d*K;v+=d*L;w+=d*M;x+=d*N;y+=d*O;z+=d*P;A+=d*Q;B+=d*R;C+=d*S;D+=d*T;E+=d*U;F+=d*V;G+=d*W;H+=d*X;I+=d*c;e+=38*u;f+=38*v;g+=38*w;h+=38*x;i+=38*y;j+=38*z;k+=38*A;l+=38*B;m+=38*C;n+=38*D;o+=38*E;p+=38*F;q+=38*G;r+=38*H;s+=38*I;b=1;d=e+b+65535;b=Math.floor(d/65536);e=d-b*65536;d=f+b+65535;b=Math.floor(d/65536);f=d-b*65536;d=g+b+65535;b=Math.floor(d/65536);g=d-b*65536;d=h+b+65535;b=Math.floor(d/65536);h=d-b*65536;d=i+b+65535;b=Math.floor(d/65536);i=d-b*65536;d=j+b+65535;b=Math.floor(d/65536);j=d-b*65536;d=k+b+65535;b=Math.floor(d/65536);k=d-b*65536;d=l+b+65535;b=Math.floor(d/65536);l=d-b*65536;d=m+b+65535;b=Math.floor(d/65536);m=d-b*65536;d=n+b+65535;b=Math.floor(d/65536);n=d-b*65536;d=o+b+65535;b=Math.floor(d/65536);o=d-b*65536;d=p+b+65535;b=Math.floor(d/65536);p=d-b*65536;d=q+b+65535;b=Math.floor(d/65536);q=d-b*65536;d=r+b+65535;b=Math.floor(d/65536);r=d-b*65536;d=s+b+65535;b=Math.floor(d/65536);s=d-b*65536;d=t+b+65535;b=Math.floor(d/65536);t=d-b*65536;e+=b-1+37*(b-1);b=1;d=e+b+65535;b=Math.floor(d/65536);e=d-b*65536;d=f+b+65535;b=Math.floor(d/65536);f=d-b*65536;d=g+b+65535;b=Math.floor(d/65536);g=d-b*65536;d=h+b+65535;b=Math.floor(d/65536);h=d-b*65536;d=i+b+65535;b=Math.floor(d/65536);i=d-b*65536;d=j+b+65535;b=Math.floor(d/65536);j=d-b*65536;d=k+b+65535;b=Math.floor(d/65536);k=d-b*65536;d=l+b+65535;b=Math.floor(d/65536);l=d-b*65536;d=m+b+65535;b=Math.floor(d/65536);m=d-b*65536;d=n+b+65535;b=Math.floor(d/65536);n=d-b*65536;d=o+b+65535;b=Math.floor(d/65536);o=d-b*65536;d=p+b+65535;b=Math.floor(d/65536);p=d-b*65536;d=q+b+65535;b=Math.floor(d/65536);q=d-b*65536;d=r+b+65535;b=Math.floor(d/65536);r=d-b*65536;d=s+b+65535;b=Math.floor(d/65536);s=d-b*65536;d=t+b+65535;b=Math.floor(d/65536);t=d-b*65536;e+=b-1+37*(b-1);a[0]=e;a[1]=f;a[2]=g;a[3]=h;a[4]=i;a[5]=j;a[6]=k;a[7]=l;a[8]=m;a[9]=n;a[10]=o;a[11]=p;a[12]=q;a[13]=r;a[14]=s;a[15]=t}function P(a,b){O(a,b,b)}function Q(a,c){var d=b(),e;for(e=0;e<16;e++)d[e]=c[e];for(e=253;e>=0;e--)P(d,d),e!==2&&e!==4&&O(d,d,c);for(e=0;e<16;e++)a[e]=d[e]}function R(a,c){var d=b(),e;for(e=0;e<16;e++)d[e]=c[e];for(e=250;e>=0;e--)P(d,d),e!==1&&O(d,d,c);for(e=0;e<16;e++)a[e]=d[e]}function S(a,c,d){__p&&__p();var e=new Uint8Array(32),f=new Float64Array(80),g,i=b(),j=b(),k=b(),l=b(),m=b(),n=b();for(g=0;g<31;g++)e[g]=c[g];e[31]=c[31]&127|64;e[0]&=248;L(f,d);for(g=0;g<16;g++)j[g]=f[g],l[g]=i[g]=k[g]=0;i[0]=l[0]=1;for(g=254;g>=0;--g)c=e[g>>>3]>>>(g&7)&1,H(i,j,c),H(k,l,c),M(m,i,k),N(i,i,k),M(k,j,l),N(j,j,l),P(l,m),P(n,i),O(i,k,i),O(k,j,m),M(m,i,k),N(i,i,k),P(j,i),N(k,l,n),O(i,k,h),M(i,i,l),O(k,k,i),O(i,l,n),O(l,j,f),P(j,m),H(i,j,c),H(k,l,c);for(g=0;g<16;g++)f[g+16]=i[g],f[g+32]=k[g],f[g+48]=j[g],f[g+64]=l[g];d=f.subarray(32);c=f.subarray(16);Q(d,d);O(c,c,d);I(a,c);return 0}function T(a,b){return S(a,b,e)}function U(a,b){c(b,32);return T(a,b)}function V(a,b,c){var e=new Uint8Array(32);S(e,c,b);return u(a,d,e,v)}var W=D,X=E;function aa(a,b,c,d,e,f){var g=new Uint8Array(32);V(g,e,f);return W(a,b,c,d,g)}function ba(a,b,c,d,e,f){var g=new Uint8Array(32);V(g,e,f);return X(a,b,c,d,g)}var ca=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function da(a,b,c,d){__p&&__p();var e=new Int32Array(16),f=new Int32Array(16),g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G=a[0],H=a[1],I=a[2],J=a[3],K=a[4],L=a[5],M=a[6],N=a[7],O=b[0],P=b[1],Q=b[2],R=b[3],S=b[4],T=b[5],U=b[6],V=b[7],W=0;while(d>=128){for(y=0;y<16;y++)z=8*y+W,e[y]=c[z+0]<<24|c[z+1]<<16|c[z+2]<<8|c[z+3],f[y]=c[z+4]<<24|c[z+5]<<16|c[z+6]<<8|c[z+7];for(y=0;y<80;y++){g=G;h=H;i=I;j=J;k=K;l=L;m=M;N;o=O;p=P;q=Q;r=R;s=S;t=T;u=U;V;A=N;B=V;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=(K>>>14|S<<32-14)^(K>>>18|S<<32-18)^(S>>>41-32|K<<32-(41-32));B=(S>>>14|K<<32-14)^(S>>>18|K<<32-18)^(K>>>41-32|S<<32-(41-32));C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;A=K&L^~K&M;B=S&T^~S&U;C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;A=ca[y*2];B=ca[y*2+1];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;A=e[y%16];B=f[y%16];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;w=E&65535|F<<16;x=C&65535|D<<16;A=w;B=x;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=(G>>>28|O<<32-28)^(O>>>34-32|G<<32-(34-32))^(O>>>39-32|G<<32-(39-32));B=(O>>>28|G<<32-28)^(G>>>34-32|O<<32-(34-32))^(G>>>39-32|O<<32-(39-32));C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;A=G&H^G&I^H&I;B=O&P^O&Q^P&Q;C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;n=E&65535|F<<16;v=C&65535|D<<16;A=j;B=r;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=w;B=x;C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;j=E&65535|F<<16;r=C&65535|D<<16;H=g;I=h;J=i;K=j;L=k;M=l;N=m;G=n;P=o;Q=p;R=q;S=r;T=s;U=t;V=u;O=v;if(y%16===15)for(z=0;z<16;z++)A=e[z],B=f[z],C=B&65535,D=B>>>16,E=A&65535,F=A>>>16,A=e[(z+9)%16],B=f[(z+9)%16],C+=B&65535,D+=B>>>16,E+=A&65535,F+=A>>>16,w=e[(z+1)%16],x=f[(z+1)%16],A=(w>>>1|x<<32-1)^(w>>>8|x<<32-8)^w>>>7,B=(x>>>1|w<<32-1)^(x>>>8|w<<32-8)^(x>>>7|w<<32-7),C+=B&65535,D+=B>>>16,E+=A&65535,F+=A>>>16,w=e[(z+14)%16],x=f[(z+14)%16],A=(w>>>19|x<<32-19)^(x>>>61-32|w<<32-(61-32))^w>>>6,B=(x>>>19|w<<32-19)^(w>>>61-32|x<<32-(61-32))^(x>>>6|w<<32-6),C+=B&65535,D+=B>>>16,E+=A&65535,F+=A>>>16,D+=C>>>16,E+=D>>>16,F+=E>>>16,e[z]=E&65535|F<<16,f[z]=C&65535|D<<16}A=G;B=O;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[0];B=b[0];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[0]=G=E&65535|F<<16;b[0]=O=C&65535|D<<16;A=H;B=P;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[1];B=b[1];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[1]=H=E&65535|F<<16;b[1]=P=C&65535|D<<16;A=I;B=Q;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[2];B=b[2];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[2]=I=E&65535|F<<16;b[2]=Q=C&65535|D<<16;A=J;B=R;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[3];B=b[3];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[3]=J=E&65535|F<<16;b[3]=R=C&65535|D<<16;A=K;B=S;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[4];B=b[4];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[4]=K=E&65535|F<<16;b[4]=S=C&65535|D<<16;A=L;B=T;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[5];B=b[5];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[5]=L=E&65535|F<<16;b[5]=T=C&65535|D<<16;A=M;B=U;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[6];B=b[6];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[6]=M=E&65535|F<<16;b[6]=U=C&65535|D<<16;A=N;B=V;C=B&65535;D=B>>>16;E=A&65535;F=A>>>16;A=a[7];B=b[7];C+=B&65535;D+=B>>>16;E+=A&65535;F+=A>>>16;D+=C>>>16;E+=D>>>16;F+=E>>>16;a[7]=N=E&65535|F<<16;b[7]=V=C&65535|D<<16;W+=128;d-=128}return d}function Y(a,b,c){__p&&__p();var d=new Int32Array(8),e=new Int32Array(8),f=new Uint8Array(256),g,h=c;d[0]=1779033703;d[1]=3144134277;d[2]=1013904242;d[3]=2773480762;d[4]=1359893119;d[5]=2600822924;d[6]=528734635;d[7]=1541459225;e[0]=4089235720;e[1]=2227873595;e[2]=4271175723;e[3]=1595750129;e[4]=2917565137;e[5]=725511199;e[6]=4215389547;e[7]=327033209;da(d,e,b,c);c%=128;for(g=0;g=0;--e)d=c[e/8|0]>>(e&7)&1,fa(a,b,d),ea(b,a),ea(a,a),fa(a,b,d)}function ia(a,c){var d=[b(),b(),b(),b()];F(d[0],k);F(d[1],l);F(d[2],g);O(d[3],k,l);ha(a,d,c)}function ja(a,d,e){__p&&__p();var f=new Uint8Array(64),g=[b(),b(),b(),b()];e||c(d,32);Y(f,d,32);f[0]&=248;f[31]&=127;f[31]|=64;ia(g,f);ga(a,g);for(e=0;e<32;e++)d[e+32]=a[e];return 0}var ka=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function la(a,b){__p&&__p();var c,d,e,f;for(d=63;d>=32;--d){c=0;for(e=d-32,f=d-12;e>8,b[e]-=c*256;b[e]+=c;b[d]=0}c=0;for(e=0;e<32;e++)b[e]+=c-(b[31]>>4)*ka[e],c=b[e]>>8,b[e]&=255;for(e=0;e<32;e++)b[e]-=c*ka[e];for(d=0;d<32;d++)b[d+1]+=b[d]>>8,a[d]=b[d]&255}function ma(a){var b=new Float64Array(64),c;for(c=0;c<64;c++)b[c]=a[c];for(c=0;c<64;c++)a[c]=0;la(a,b)}function na(a,c,d,e){__p&&__p();var f=new Uint8Array(64),g=new Uint8Array(64),h=new Uint8Array(64),i,j=new Float64Array(64),k=[b(),b(),b(),b()];Y(f,e,32);f[0]&=248;f[31]&=127;f[31]|=64;var l=d+64;for(i=0;i>7&&N(a[0],f,a[0]);O(a[3],a[0],a[1]);return 0}function pa(a,c,d,e){__p&&__p();var f,g=new Uint8Array(32),h=new Uint8Array(64),i=[b(),b(),b(),b()],j=[b(),b(),b(),b()];if(d<64)return-1;if(oa(j,e))return-1;for(f=0;f=0};a.sign.keyPair=function(){var a=new Uint8Array(Ca),b=new Uint8Array(Da);ja(a,b);return{publicKey:a,secretKey:b}};a.sign.keyPair.fromSecretKey=function(a){$(a);if(a.length!==Da)throw new Error("bad secret key size");var b=new Uint8Array(Ca);for(var c=0;c>8&255;u+=m;t.set(b,u);u+=n;u+=l;if(b.length!==n+l)throw new Error("encrypted key is the wrong length");b=new Uint8Array(a[1]);a=b.slice(-o);b=b.slice(0,-o);t.set(a,u);u+=o;t.set(b,u);return t})["catch"](function(a){throw a});return y.abrupt("return",x);case 16:case"end":return y.stop()}},null,this)}};e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/OKBVmODmb-W/ */ __d("tweetnacl-util-0.15.0",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={};var g={exports:a};function h(){__p&&__p();(function(a,b){typeof g!=="undefined"&&g.exports?g.exports=b():a.nacl?a.nacl.util=b():(a.nacl={},a.nacl.util=b())})(this,function(){__p&&__p();var a={};function b(a){if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a))throw new TypeError("invalid encoding")}a.decodeUTF8=function(a){if(typeof a!=="string")throw new TypeError("expected string");var b;a=unescape(encodeURIComponent(a));var c=new Uint8Array(a.length);for(b=0;bNumber(c)+i*b("DateConsts").MS_PER_DAY)return null;c=a.getItem("fb_jio_msisdn_value");var d=a.getItem("fb_jio_msisdn_timestamp"),e=a.getItem("fb_jio_msisdn_signature");a=a.getItem("fb_jio_msisdn_salt");if(!c||!d||!e||!a)return null;var f=new Map();f.set("fb_jio_msisdn_value",c);f.set("fb_jio_msisdn_timestamp",d);f.set("fb_jio_msisdn_signature",e);f.set("fb_jio_msisdn_salt",a);return f}function d(){var a=Date.now();j();b("promiseDone")(b("KaiOSController").waitForKaiOS(),function(){b("KaiOSController").sendMessageToAppWithCallback(b("KaiOSSendMessageUtil").Type.FETCH_MSISDN,function(b){k(Date.now()-a);var c=b.get("msisdn");c&&l.cacheMsisdn(b)})})}function j(a){new(b("ZeroJioHeaderTypedLogger"))().setEvent("jio_api_request").setJioAPISurface(a).log()}function k(a,c){new(b("ZeroJioHeaderTypedLogger"))().setEvent("jio_api_response").setResponseTime(a).setJioAPISurface(c).log()}function f(a){var c=Date.now(),d=b("DOM").find(a,"input",h);d.value||(j("account_recovery"),b("promiseDone")(b("KaiOSController").waitForKaiOS(),function(){b("KaiOSController").sendMessageToAppWithCallback(b("KaiOSSendMessageUtil").Type.FETCH_MSISDN,function(a){k(Date.now()-c,"account_recovery");a=a.get("msisdn");a&&(d.value=a,new(b("ZeroJioHeaderTypedLogger"))().setEvent("account_recovery_prefill").setTimeToPrefill(Date.now()-c).log())})}))}var l={cacheMsisdn:a,getCachedMsisdn:c,prefillMsisdnForAccountRecovery:f,logAPIRequest:j,logAPIResponse:k,fetchMsisdnAndCache:d};e.exports=l}),null); __d("XLoginProfileInfoFetcherController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/login/pp/",{contactpoint:{type:"String"},pwdprefill:{type:"Bool",defaultValue:!1}})}),null); __d("XZeroHeaderUserConsentProcessController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/mobile/zero/h_consent/",{ce:{type:"Enum",required:!0,enumType:1}})}),null); __d("XZeroTokenHeaderUserConsentProcessController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/mobile/zero/TOS_process/",{})}),null); __d("MLoginController",["cx","fbt","BanzaiLogger","CSS","DataStore","DeferredCookie","DOM","Event","EventListener","FBLogger","HeaderTransparencyConsentEventParam","IorgMaskHeaderPrefillTypedLogger","Keys","LoggedOutLocaleEventsClientLogger","MAjaxify","MAnimator","MButton","MHistory","MLoginFormError","MMsisdnJioApiModule","MRequest","MViewport","Run","Stratcom","SubscriptionsHandler","URI","WebFunnelLogger","XLoginProfileInfoFetcherController","XZeroHeaderUserConsentProcessController","XZeroTokenHeaderUserConsentProcessController","bx","ge","goURI","FBBrowserPasswordEncryption","promiseDone","LoginServicePasswordEncryptDecryptEventTypedLogger"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j="_pg8",k="stepOneIdentification",l="stepTwoAuthenticaiton",m="auth",n=500,o=5;a={_initTwoStepsListeners:function(){__p&&__p();var a=this,c,d=new(b("SubscriptionsHandler"))();d.addSubscriptions((c=b("Stratcom")).listen("click","m_login_change_cp_link",function(b){b.prevent(),a._logAction("clicked_not_you"),a._showEditableCPFieldOnAuthStep()}),c.listen("m:history:change",null,function(a){var c=a.getData();if(c.path){c=new(i||(i=b("URI")))(c.path);this._initialURI.getPath()===c.getPath()&&(a.prevent(),a.getData().soft===m?this._onEnteringCP():this._onBackToCP())}}.bind(this)),c.listen("click","m_login_next_btn",this._handleNextButtonClick.bind(this)));b("DOM").listen(this.oneTimePasswordLink,"click",null,this._onSendOneTimePassword.bind(this));c.listen("m:page:unload",null,function(){b("Stratcom").removeCurrentListener(),d.release()})},initRegButton:function(a){var c=a.root;this.regURI=a.regURI;this.regButton=b("DOM").find(c,"a","m_reg_button");this.regButton.removeAttribute("href");b("DOM").listen(this.regButton,"click",null,this._sendLoginRequestFromReg.bind(this))},initCloseButton:function(a){b("DOM").listen(a,"click",null,function(){window.close()})},initForgotAccountLink:function(a){this.originalURL=a.root.getAttribute("href"),a.root.removeAttribute("href"),b("DOM").listen(a.root,"click",null,this._redirectToPrefilledForgotPassword.bind(this))},initLoginForm:function(a){__p&&__p();var c=this;this.root=a.root;this.isTwoStepsLogin=a.isTwoStepsLogin;this.isActionLoggingEnabled=a.isActionLoggingEnabled;this.isCredsManagerEnabled=a.isCredsManagerEnabled;this.shouldPrefillJioHeaderForRegFromLogin=a.shouldPrefillJioHeaderForRegFromLogin;this.jioPrefilled=!1;this.igCPLogin=!1;this.shouldProcessUserConsentForTokenHeader=a.shouldProcessUserConsentForTokenHeader;this.shouldProcessUserConsentForHeader=a.shouldProcessUserConsentForHeader;this.onErrorRegURI=a.onErrorRegURI;this.loginForm=b("DOM").find(this.root,"form","m_login_form");this.loginForm.action=a.ajaxURI;this.loginButton=b("DOM").find(this.root,"button","m_login_button");var d=b("DOM").scry(this.root,"a","m_login_button_alt");d=d.pop();this.loginButtonAlt=null;this.isSmartLock=b("ge")("is_smart_lock");this.shouldRunBotDetection=!1;this.clearPrefillMaskOnKeydown=a.clearPrefillMaskOnKeydown;this.pubKeyData=a.pubKeyData;window.PublicKeyCredential&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable?window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(a){a?c._authenticatorAvailableStatus="true":c._authenticatorAvailableStatus="false",c._logAction("authenticator_check")})["catch"](function(a){c._authenticatorAvailableStatus="error",c._logAction("authenticator_check")}):(this._authenticatorAvailableStatus="unsupported",this._logAction("authenticator_check"));d!==void 0&&(this.loginButtonAlt=d);(a.shouldShowSmartLockSelector||this._isCredentialsManagerEnabled())&&this._initSmartLockAccountChooser();this.isTwoStepsLogin?(this.hadCPPrefilled=!1,this.shouldClearPasswordIfOnlyPasswordPrefilled=!0,this._initialURI=(i||(i=b("URI"))).getRequestURI(),this.shouldAutoLandOnStep2=a.shouldAutoLandOnStep2,this.prefillContactpointHiddenInput=b("ge")("prefill_contact_point"),this.emailComponentsWrapper=b("ge")("email_components_wrapper"),this.passwordComponentWrapper=b("ge")("password_component_wrapper"),this.stepTwoCPDisplayContainer=b("ge")("step_two_cp_display"),this.nextButton=b("DOM").find(this.root,"button","m_login_next_btn"),this.cpText=b("DOM").scry(this.root,"span","m_login_cp_text").pop(),this.cpDisplayLabel=b("DOM").scry(this.root,"span","contactpoint_display_label").pop(),this.passwordFieldLabel=b("DOM").scry(this.root,"span","password_field_label").pop(),this.profilePicElem=b("DOM").scry(this.root,"*","profile_pic_elem").pop(),this.oneTimePasswordLink=b("DOM").scry(this.root,"a","one_time_password_link").pop(),this.otpSentMsg=b("DOM").scry(this.root,"div","otp_retrieve_desc").pop(),this.userName=b("DOM").scry(this.root,"span","m_recognized_user_name").pop(),this.moreLinks=b("DOM").scry(this.root,"div","m_login_more_links").pop(),this.progressBar=b("DOM").find(this.root.ownerDocument,"div","login_identify_step_progress_bar"),this.languageSelector=b("DOM").find(this.root.ownerDocument,"div","language_selector"),this.identifyStepElements=b("DOM").scry(this.root.ownerDocument,"div","login_identify_step_element"),this.identifyStepElements.push(this.languageSelector),this.passwordStepElements=b("DOM").scry(this.root.ownerDocument,"div","login_password_step_element"),this._initTwoStepsListeners(),b("DataStore").set(this.loginForm,"step",k)):this.prefillContactpointHiddenInput=b("ge")("m_login_email");this.loginButton.type="button";this.notice=b("DOM").find(this.root,"div","m_login_notice");this.emailInput=this._getElem("input","m_login_email");this.passwordInput=this._getElem("div","m_login_password");this.emailInputContainer=b("ge")("email_input_container");this.passwordInputDOM=b("DOM").find(this.passwordInput,"input");this.tryNumber=this._getElem("input","m_login_try_number");this.unrecognizedTriesCountInput=this._getElem("input","m_login_unrecognized_tries");this.upsell=this._getElem("div","m_login_upsell");this.numPasswordErrorAttempts=0;this.unrecognizedContactpointErrorCount=0;this.rapidFeedbackUri=a.rapidFeedbackUri;this.originalPasswordPlaceholder=this.passwordInputDOM.getAttribute("placeholder");this.userInfoContainer=b("ge")("user_info_container");this.oauthLoginButtonContainer=b("ge")("oauth_login_button_container");this.oauthLoginDescContainer=b("ge")("oauth_login_desc_container");this.passwordLabelContainer=b("ge")("pwd_label_container");this.otpButtonContainer=b("ge")("otp_button_elem_container");this.otpRetrieveDescContainer=b("ge")("otp_retrieve_desc_container");this.userInfoAfterFailureElements=b("DOM").scry(this.root.ownerDocument,"div","user_info_after_failure_element");this.otpPasswordPlaceholder=h._("Password or one-time password");this.shouldPrefillJioHeaderForRegFromLogin&&b("MMsisdnJioApiModule").fetchMsisdnAndCache();b("DOM").listen(this.loginButton,"click",null,this._handleSubmitButtonClick.bind(this));this.loginButtonAlt!==null&&b("DOM").listen(this.loginButtonAlt,"click",null,this._handleSubmitButtonClick.bind(this));this.hiddenInputPrefillSource=b("ge")("prefill_source");this.hiddenInputPrefillSource!==null&&this.hiddenInputPrefillSource.value==="header"&&this.clearPrefillMaskOnKeydown===!0&&b("DOM").listen(this.emailInput,"keydown",null,function(a){this.clearPrefillMaskOnKeydown===!0&&(this.clearPrefillMaskOnKeydown=!1,this.emailInput.value="",new(b("IorgMaskHeaderPrefillTypedLogger"))().setEvent("clear_masked_prefill_login").log())}.bind(this));d=a.listenKeyDown?"keydown":"keyup";this.isTwoStepsLogin?(this.nextButton.setAttribute("type","button"),this.passwordInputDOM.setAttribute("tabindex",-1),b("DOM").listen(this.loginForm,"keydown",null,function(a){a.getRawEvent().keyCode===b("Keys").RETURN?b("DataStore").get(this.loginForm,"step","")===k?this._handleNextButtonClick():this._handleSubmitButtonClick():a.getRawEvent().keyCode===b("Keys").TAB&&b("DataStore").get(this.loginForm,"step","")===k&&this._handleNextButtonClick()}.bind(this))):b("DOM").listen(this.loginForm,d,null,function(a){a.getRawEvent().keyCode===b("Keys").RETURN&&this._handleSubmitButtonClick()}.bind(this));a.clearOnDelete&&b("DOM").listen(this.emailInput,d,null,function(a){a.getRawEvent().keyCode===b("Keys").BACKSPACE&&(this.emailInput.value="")}.bind(this));if(this.isActionLoggingEnabled){(d=b("Stratcom")).listen("change","m_login_email",function(a){this._logAction("changed_user_identifier"),this.shouldDisplayOTPMsg=!1,this.displayOTPLink=!1,this._rerenderAuthStepCPDisplay()}.bind(this));d.listen("change","m_login_password",function(a){this._logAction("changed_password")}.bind(this));d.listen("click","m_reg_button",function(a){this.emailInput.value===""?this._logAction("clicked_reg_identifier_blank"):this._logAction("clicked_reg_identifier_filled"),this.passwordInputDOM.value===""?this._logAction("clicked_reg_password_blank"):this._logAction("clicked_reg_password_filled")}.bind(this));d.listen("click","language_selector",function(a){c.clickedLanguageSelector||(c._logAction("clicked_language_selector"),c.clickedLanguageSelector=!0)});b("Event").listen(this.root,"click",function(){c._logAction("clicked_on_login_screen")});this.hasFocusedAlready=!1;b("Run").onAfterLoad(function(){this._logAction("form_load_client")}.bind(this));d=b("DOM").scry(this.root,"input",null);d.forEach(function(a){b("Event").listen(a,"focus",c._logFormFocus.bind(c))})}this.shouldAutoLandOnStep2&&this.emailInput.value.trim()!==""&&(this.hadCPPrefilled=!0,b("MHistory").pushSoftState(m));b("Stratcom").listen("click",["change_language"],function(d){new(b("LoggedOutLocaleEventsClientLogger"))(c.root,a.datrCookie).logLocaleEvent(d,"login","login")});b("Stratcom").listen("click",["more_language"],function(d){new(b("LoggedOutLocaleEventsClientLogger"))(c.root,a.datrCookie).logMoreLanguage("login","login")})},initAccountRecoveryFunnelLogging:function(a,c,d){b("EventListener").listen(a,"click",function(){new(b("WebFunnelLogger"))("MTouchAccountRecoveryFunnelDefinition").setAction(c).setSessionKey(d).log()})},_initSmartLockAccountChooser:function(){var a=this;window.PasswordCredential&&(this._logAction("smart_lock_supported"),navigator.credentials!==null&&(this._logAction("smart_lock_showed"),navigator.credentials.get({password:!0,mediation:"required"}).then(function(b){b!==null&&b.type==="password"&&b.password!==null&&b.id!==null?(a.emailInput.setAttribute("value",b.id),a.passwordInputDOM.setAttribute("value",b.password),a._logAction("smart_lock_selected"),a.isSmartLock.setAttribute("value",!0),a._sendLoginRequest()):(a.passwordInputDOM.value="",a._logAction("smart_lock_canceled"))})["catch"](function(a){b("FBLogger")("login").catching(a).warn("smart lock promise fail")})))},_logFormFocus:function(){if(this.hasFocusedAlready)return;this.hasFocusedAlready=!0;this._logAction("form_focus")},_getElem:function(a,c){a=b("DOM").scry(this.root,a,c);return a.length===0?null:a[0]},_animateScrollToElem:function(a){if(!a)return;var c=b("MViewport").getScrollPos().y,d=a.offsetTop;a=function(a){b("MViewport").scrollTo(0,c+a*(d-c-o))};new(b("MAnimator"))().start(a,null,function(){},n)},_autoFocusIfNeeded:function(a){if(!this.emailInput||!this.passwordInput)return;if(!this.passwordInputDOM)return;var b=this.emailInput.value===""||a.m_login_email.error;a=this.passwordInputDOM.value===""||a.m_login_password.error;(b||a)&&(b?this.emailInput.focus():a&&this.passwordInputDOM.focus())},_sendLoginRequest:function(){__p&&__p();var a=this;b("DeferredCookie").flushAllCookies();b("CSS").hide(this.notice);b("MButton").setEnabled(this.loginButton,!1);this.isTwoStepsLogin&&b("MButton").setEnabled(this.nextButton,!1);window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButton,!0),15e3);this.loginButtonAlt!==null&&(b("MButton").setEnabled(this.loginButtonAlt,!1),window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButtonAlt,!0),15e3));this.tryNumber!==null&&this.tryNumber.setAttribute("value",this.numPasswordErrorAttempts);this.unrecognizedTriesCountInput!==null&&(this.unrecognizedTriesCountInput.value=this.unrecognizedContactpointErrorCount);var c=new(i||(i=b("URI")))(this.loginForm.action).addQueryData("ig_cp_login",this.igCpLogin),d="#PWD_BROWSER",e=5,f=Date.now().toString();if((window.crypto||window.msCrypto)&&this.pubKeyData){var g=b("FBBrowserPasswordEncryption");g=g.encryptPassword;var h=b("promiseDone");h(g(this.pubKeyData.keyId,this.pubKeyData.publicKey,this.passwordInputDOM.value,f),function(d){d=b("DOM").create("input",{type:"hidden",name:"encpass",value:d});a.loginForm.appendChild(d);a.passwordInputDOM.disabled=!0;a.loginForm.action=c.toString();b("MAjaxify").form(null,a.loginForm,null,"nocache",null,!0,[{response:a._onLoginResponse.bind(a)}])},function(g){var h=b("LoginServicePasswordEncryptDecryptEventTypedLogger");new h().setError("BrowserEncryptionFailure").setErrorMessage(g.message).setPasswordTag(d).setPasswordEncryptionVersion(e).setPasswordTimestamp(f).logVital();a.loginForm.action=c.toString();b("MAjaxify").form(null,a.loginForm,null,"nocache",null,!0,[{response:a._onLoginResponse.bind(a)}])});return}if(!(window.crypto||window.msCrypto)&&this.pubKeyData){h=b("LoginServicePasswordEncryptDecryptEventTypedLogger");new h().setError("BrowserEncryptionFailure").setErrorMessage("Crypto object is undefined").setPasswordTag(d).setPasswordEncryptionVersion(e).setPasswordTimestamp(f).logVital()}this.loginForm.action=c.toString();b("MAjaxify").form(null,this.loginForm,null,"nocache",null,!0,[{response:this._onLoginResponse.bind(this)}])},_sendLoginRequestFromReg:function(){__p&&__p();b("DeferredCookie").flushAllCookies();this.shouldProcessUserConsentForTokenHeader&&this._processUserConsentForTokenHeader();this.shouldProcessUserConsentForHeader&&this._processUserConsentForHeader("reg");if(this.emailInput.value===""||this.passwordInput.value===""){b("goURI")(this.regURI);return}b("CSS").hide(this.notice);b("MButton").setEnabled(this.loginButton,!1);window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButton,!0),15e3);this.loginButtonAlt!==null&&(b("MButton").setEnabled(this.loginButtonAlt,!1),window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButtonAlt,!0),15e3));b("MAjaxify").form(null,this.loginForm,null,"nocache",null,!0,[{response:this._onLoginFromRegResponse.bind(this)}])},_redirectToPrefilledForgotPassword:function(){__p&&__p();if(this.emailInput===null){b("goURI")(this.originalURL);return}var a=this.emailInput.value.trim();if(a===""){b("goURI")(this.originalURL);return}a=new(i||(i=b("URI")))(this.originalURL).addQueryData("cpp",a);b("goURI")(a)},_updatePagePrefillState:function(){__p&&__p();var a=b("ge")("first_prefill_type"),c=null;a!=null&&a.value!==""&&(c=a.value);a=b("ge")("first_prefill_source");var d=null;a!=null&&a.value!==""&&(d=a.value);a=b("ge")("prefill_type");var e=null;a!=null&&a.value!==""&&(e=a.value);a=b("ge")("prefill_source");var f=null;a!=null&&a.value!==""&&(f=a.value);a=b("ge")("had_cp_prefilled");var g=null;a!=null&&a.value!==""&&(g=a.value);a=b("ge")("had_password_prefilled");var h=null;a!=null&&a.value!==""&&(h=a.value);this.pagePrefillState={first_prefill_type:c,first_prefill_source:d,prefill_type:e,prefill_source:f,had_cp_prefilled:g,had_password_prefilled:h}},_logAction:function(a){if(!this.isActionLoggingEnabled)return;this._updatePagePrefillState();b("BanzaiLogger").create({signal:!0}).log("LoginEventsLoggerConfig",{event:a,first_prefill_type:this.pagePrefillState.firstPrefillType,first_prefill_source:this.pagePrefillState.firstPrefillSource,prefill_type:this.pagePrefillState.prefillType,prefill_source:this.pagePrefillState.prefillSource,had_cp_prefilled:this.pagePrefillState.hadCPPrefilled,had_password_prefilled:this.pagePrefillState.hadPasswordPrefilled,authenticator_available_status:this._authenticatorAvailableStatus})},_handleSubmitButtonClick:function(){this._logAction("clicked_submit"),this.emailInput!==null&&this.emailInput.value===""?this._logAction("clicked_submit_identifier_blank"):this._logAction("clicked_submit_identifier_filled"),this.passwordInputDOM.value===""?this._logAction("clicked_submit_password_blank"):this._logAction("clicked_submit_password_filled"),this.shouldProcessUserConsentForTokenHeader&&this._processUserConsentForTokenHeader(),this.shouldProcessUserConsentForHeader&&this._processUserConsentForHeader("ln"),this._sendLoginRequest()},_processUserConsentForTokenHeader:function(){var a=b("XZeroTokenHeaderUserConsentProcessController").getURIBuilder().getURI();new(b("MRequest"))(a).setMethod("POST").send()},_processUserConsentForHeader:function(a){a=b("XZeroHeaderUserConsentProcessController").getURIBuilder().setEnum("ce",a).getURI();new(b("MRequest"))(a).setMethod("POST").send()},_showBlankPWError:function(a){b("DOM").setContent(this.notice,this._getBlankPasswordErrorFBT(a)),b("CSS").show(this.notice)},_onSendOneTimePassword:function(a){var c=this;a.prevent();b("MAjaxify").ajaxify(null,null,new(b("MRequest"))(this.otp_uri).setMethod("POST"),null,[{response:function(a){a=a.payload;if(a.msg===null)return;b("DOM").setContent(c.otpSentMsg,a.msg);c.shouldDisplayOTPMsg=!0;c._rerenderAuthStepCPDisplay()}}])},_populateProfileInfo:function(a){__p&&__p();var c=this;this._updatePagePrefillState();var d=b("XLoginProfileInfoFetcherController").getURIBuilder().setString("contactpoint",this.emailInput.value).setBool("pwdprefill","true"===this.pagePrefillState.had_password_prefilled).getURI();b("MAjaxify").ajaxify(null,null,new(b("MRequest"))(d).setMethod("GET"),null,[{response:function(d){__p&&__p();c.nextButton.disabled=!1;if(!d.payload){a();return}d=d.payload;if(d.profile_pic_elem){var e=c.profilePicElem.parentNode;b("DOM").replace(c.profilePicElem,d.profile_pic_elem);c.profilePicElem=b("DOM").scry(e,"*","profile_pic_elem").pop();c.displayProfilePic=!0}d.user_name&&c.userName&&(b("DOM").setContent(c.userName,d.user_name||c.emailInput.value),c.displayUserName=!0);d.otp_uri&&c.oneTimePasswordLink&&(c.otp_uri=d.otp_uri,c.displayOTPLink=!0);a()}}])},_getBlankEmailErrorFBT:function(){var a=h._("Sign up for an account."),c=b("DOM").create("a");c.setAttribute("href",this.onErrorRegURI);b("DOM").setContent(c,a);return h._("The email or phone number you\u2019ve entered doesn\u2019t match any account. {reg_uri}",[h._param("reg_uri",c)])},_getBlankPasswordErrorFBT:function(a){var c=h._("Did you forget your password?"),d=b("DOM").create("a");d.setAttribute("href",a.forgot_password_uri);b("DOM").setContent(d,c);return h._("Please enter your password. {recovery_uri}",[h._param("recovery_uri",d)])},_onEnteringCP:function(){__p&&__p();this._logAction("clicked_next");if(this.emailInput.value.trim()===""){this._logAction("clicked_next_user_identifier_blank");b("DOM").setContent(this.notice,this._getBlankEmailErrorFBT());b("CSS").show(this.notice);b("MLoginFormError").set(this.emailInput,"error");b("DataStore").set(this.emailInput,"error",!0);b("MHistory").popSoftState(m);return}this._logAction("clicked_next_user_identifier_filled");b("MLoginFormError").unset(this.emailInput);b("DataStore").set(this.emailInput,"error",!1);b("DataStore").get(this.passwordInput,"error",!1)||b("CSS").hide(this.notice);this.nextButton.disabled=!0;this._enableProgressBar();this._populateProfileInfo(this._goToPasswordStep.bind(this));return},_onBackToCP:function(){b("DataStore").get(this.passwordInput,"error",!1)&&(b("CSS").hide(this.notice),b("DataStore").set(this.passwordInput,"error",!1),b("CSS").removeClass(this.passwordInput,j)),this._goToIdentificationStep()},_hideAll:function(a){a.forEach(function(a){return b("CSS").hide(a)})},_showAll:function(a){a.forEach(function(a){return b("CSS").show(a)})},_rerenderAuthStepCPDisplay:function(){this.displayUserName&&(this.cpText&&b("CSS").hide(this.cpText),this.cpDisplayLabel&&b("CSS").hide(this.cpDisplayLabel),this.userName&&b("CSS").show(this.userName));this.profilePicElem&&b("CSS").conditionShow(this.profilePicElem,!!this.displayProfilePic);this.oneTimePasswordLink&&b("CSS").conditionShow(this.oneTimePasswordLink,!!this.displayOTPLink);this.otpSentMsg&&(b("CSS").conditionShow(this.otpSentMsg,!!this.shouldDisplayOTPMsg),this.shouldDisplayOTPMsg?(this.passwordInputDOM.setAttribute("placeholder",this.otpPasswordPlaceholder),this._animateScrollToElem(this.passwordFieldLabel)):this.passwordInputDOM.setAttribute("placeholder",this.originalPasswordPlaceholder));if(!this.stepTwoCPDisplayContainer||!this.emailComponentsWrapper)return;var a=this.displayUserName||this.displayProfilePic;b("CSS").conditionShow(this.stepTwoCPDisplayContainer,!!a);b("CSS").conditionShow(this.emailComponentsWrapper,!a)},_showEditableCPFieldOnAuthStep:function(){this.displayProfilePic=!1,this.displayUserName=!1,this.displayOTPLink=!1,this._rerenderAuthStepCPDisplay(),this.emailInput.focus()},_goToPasswordStep:function(){__p&&__p();b("DataStore").set(this.loginForm,"step",l);this.prefillContactpointHiddenInput.value!==this.emailInput.value&&(this.passwordInputDOM.value="");if(this.shouldClearPasswordIfOnlyPasswordPrefilled){var a=b("ge")("had_cp_prefilled"),c=b("ge")("had_password_prefilled");a!=null&&c!=null&&(a.value==null||a.value==="false")&&c.value==="true"&&(this.shouldClearPasswordIfOnlyPasswordPrefilled=!1)}this._hideAll(this.identifyStepElements);this._showAll(this.passwordStepElements);this._logAction("password_entry_viewed");this._rerenderAuthStepCPDisplay();this.moreLinks&&b("CSS").addClass(this.moreLinks,"_2pie");b("CSS").removeClass(this.passwordInput,"_1-z5");b("CSS").removeClass(this.passwordComponentWrapper,"_1-z5");this.passwordInputDOM.removeAttribute("tabindex");this.cpText&&b("DOM").setContent(this.cpText,this.emailInput.value);this.passwordInputDOM.focus()},_resetProgressBar:function(){this.progressBar.style.transitionDuration="0ms",this.progressBar.style["-webkit-transition-duration"]="0ms",this.progressBar.style["-moz-transition-duration"]="0ms",this.progressBar.style.transform="translateX(0%)",this.progressBar.style["-webkit-transform"]="translateX(0%)",this.progressBar.style["-moz-transform"]="translateX(0%)"},_enableProgressBar:function(){this.progressBar.style.transitionDuration="1000ms",this.progressBar.style["-webkit-transition-duration"]="1000ms",this.progressBar.style["-moz-transition-duration"]="1000ms",this.progressBar.style.transform="translateX(100%)",this.progressBar.style["-webkit-transform"]="translateX(100%)",this.progressBar.style["-moz-transform"]="translateX(100%)"},_goToIdentificationStep:function(){b("DataStore").set(this.loginForm,"step",k),this._resetProgressBar(),this.displayUserName=!1,this.displayProfilePic=!1,this.displayOTPLink=!1,this.cpText&&b("CSS").show(this.cpText),this.cpDisplayLabel&&b("CSS").show(this.cpDisplayLabel),this.userName&&(b("DOM").setContent(this.userName,""),b("CSS").hide(this.userName)),b("CSS").addClass(this.passwordInput,"_1-z5"),b("CSS").addClass(this.passwordComponentWrapper,"_1-z5"),this.passwordInputDOM.setAttribute("tabindex",-1),this._hideAll(this.passwordStepElements),this._showAll(this.identifyStepElements),!b("DataStore").get(this.emailInput,"error",!1)?this._logAction("clicked_back"):b("DOM").hide(this.upsell),this.moreLinks&&b("CSS").removeClass(this.moreLinks,"_2pie"),this.emailInput.focus()},_handleNextButtonClick:function(){this.passwordInputDOM.value.trim()!==""&&this.prefillContactpointHiddenInput&&this.prefillContactpointHiddenInput.value===this.emailInput.value&&(this.hadCPPrefilled=!0),b("MHistory").pushSoftState(m)},_mayBeShowTwoStepsLoginAfterPwdFailure:function(a){__p&&__p();var c=this;a=a.two_steps_after_failuer_payload;if(!a)return;var d=a.profileInfo,e=a.passwordFieldLabelElem;if(!d||!e)return;this.userInfoContainer&&b("DOM").setContent(this.userInfoContainer,d);this.passwordLabelContainer&&b("DOM").setContent(this.passwordLabelContainer,e);this._showAll(this.userInfoAfterFailureElements);b("CSS").hide(this.emailInput);b("Stratcom").listen("click","m_login_change_cp_link",function(a){a.prevent(),c._logAction("clicked_not_you"),b("CSS").show(c.emailInput),c._hideAll(c.userInfoAfterFailureElements)});d=a.otpButtonElem;e=a.otpURI;a=a.otpRetrieveDescElem;if(!d||!e||!a)return;this.otpButtonContainer&&b("DOM").setContent(this.otpButtonContainer,d);this.otpRetrieveDescContainer&&b("DOM").setContent(this.otpRetrieveDescContainer,a);this.otpSentMsg=b("DOM").find(this.otpRetrieveDescContainer,"div","otp_retrieve_desc");this.otp_uri=e;this.displayOTPLink=!0;this.oneTimePasswordLink=b("DOM").scry(this.otpButtonContainer,"a","one_time_password_link").pop();b("DOM").listen(this.oneTimePasswordLink,"click",null,this._onSendOneTimePassword.bind(this));this._rerenderAuthStepCPDisplay()},_mayBeShowOAuthLoginAfterPwdFailure:function(a){__p&&__p();a=a.oauth_login_elem_payload;if(!a)return;var c=a.oAuthButton;a=a.oAuthDesc;if(!c)return;this.oauthLoginButtonContainer&&b("DOM").setContent(this.oauthLoginButtonContainer,c);b("CSS").show(this.oauthLoginButtonContainer);if(!a)return;this.oauthLoginDescContainer&&b("DOM").setContent(this.oauthLoginDescContainer,a);b("CSS").show(this.oauthLoginDescContainer)},_mayBeShowFamilyAuthLoginAfterPwdFailure:function(a){__p&&__p();var c=this;this.igCpLogin=!0;a=a.familyAuthDesc;this.languageSelector=b("DOM").find(this.root.ownerDocument,"div","language_selector");this.footerElem=b("DOM").find(this.root.ownerDocument,"div","m_login_footer");this.root&&this.root.parentNode&&this.root.parentNode.parentNode&&(b("DOM").setContent(this.root,a),b("CSS").hide(this.languageSelector),b("CSS").hide(this.footerElem));var d=b("DOM").find(this.root,"button","family_auth_login_button");if(!a)return;b("Event").listen(d,"click",function(a){a.preventDefault(),c._sendLoginRequest()})},_isCredentialsManagerEnabled:function(){return Boolean(this.isCredsManagerEnabled&&window.PasswordCredential&&navigator.credentials&&navigator.credentials.get&&navigator.credentials.store)},_onLoginResponse:function(a){__p&&__p();this.passwordInputDOM.disabled=!1;b("MButton").setEnabled(this.loginButton,!0);this.isTwoStepsLogin&&b("MButton").setEnabled(this.nextButton,!0);this.loginButtonAlt!==null&&b("MButton").setEnabled(this.loginButtonAlt,!0);if(!a.payload)return;var c=a.payload;this.isSmartLock.setAttribute("value",!1);c.m_login_password.error?this.numPasswordErrorAttempts++:this.numPasswordErrorAttempts=0;c.m_login_email.unrecognized&&this.unrecognizedContactpointErrorCount++;this.rapidFeedbackUri&&this.numPasswordErrorAttempts==2&&b("goURI")(this.rapidFeedbackUri);c.m_login_notice&&(b("DOM").setContent(this.notice,c.m_login_notice),c.m_login_password.error&&this.passwordInputDOM.value.trim()===""&&this._showBlankPWError(a.payload),b("CSS").show(this.notice));if(this.emailInput!==null){c.m_login_email.error?(b("MLoginFormError").set(this.emailInput,"error"),b("DataStore").set(this.emailInput,"error",!0),this.isTwoStepsLogin&&(this.shouldDisplayOTPMsg=!1,this._rerenderAuthStepCPDisplay())):(b("MLoginFormError").unset(this.emailInput),b("DataStore").set(this.emailInput,"error",!1));var d=c.m_login_email.value;d?(this.emailInput.value=d,this.isTwoStepsLogin&&this.cpText&&b("DOM").setContent(this.cpText,d)):this.emailInput.value=""}if(this.passwordInput!==null){d=c.family_auth_login_elem_payload;d===null&&(b("DOM").find(this.passwordInput,"input").value="");b("Stratcom").invoke("m:passwordinput:autoclear","password-plain-text-toggle-input");c.m_login_password.error?(b("DataStore").set(this.passwordInput,"error",!0),b("CSS").addClass(this.passwordInput,j),this.isTwoStepsLogin&&b("DataStore").get(this.loginForm,"step","")===k&&b("MHistory").pushSoftState(m),this.isTwoStepsLogin&&this._populateProfileInfo(this._rerenderAuthStepCPDisplay.bind(this)),this._mayBeShowTwoStepsLoginAfterPwdFailure(c),this._mayBeShowOAuthLoginAfterPwdFailure(c)):(b("DataStore").set(this.passwordInput,"error",!1),b("CSS").removeClass(this.passwordInput,j));d!==null&&this._mayBeShowFamilyAuthLoginAfterPwdFailure(d)}this._autoFocusIfNeeded(a.payload);this.upsell!==null&&b("DOM").hide(this.upsell);b("Stratcom").invoke("m:kaios:spatialnav:refresh",null,null)},_onLoginFromRegResponse:function(a){b("goURI")(this.regURI)},redirect:function(a){__p&&__p();var c=this;if(this._isCredentialsManagerEnabled()){var d=b("bx").getURL(b("bx")("875231"));d=new window.PasswordCredential({id:this.emailInput.value,name:this.emailInput.value,password:this.passwordInputDOM.value,iconURL:d});navigator.credentials&&navigator.credentials.store(d).then(function(){c._logAction("creds_manager_finished"),window.setTimeout(function(){window.location.replace(a)},3e3)})["catch"](function(){c._logAction("creds_manager_failed"),window.location.replace(a)})}else window.location.replace(a)}};e.exports=a}),null); __d("MLoginView",["cx","CSS","DeferredCookie","DOM","MButton","Stratcom","ge"],(function(a,b,c,d,e,f,g){__p&&__p();var h={disableOnSubmit:function(a,c){b("DOM").listen(a,"submit",null,function(){b("DeferredCookie").flushAllCookies(),b("MButton").setEnabled(c,!1),window.setTimeout(b("MButton").setEnabled.bind(null,c,!0),15e3)})},appSwitch:function(a){window.location.replace(a)},showForm:function(a,c,d){__p&&__p();b("DOM").listen(a,"click",null,function(d){b("DOM").remove(a);b("CSS").removeClass(c,"_7tb");d=b("DOM").scry(b("ge")("root"),"div","m_login_form_title");if(d.length>0){d=d[0];d instanceof HTMLElement&&b("DOM").remove(d)}window.setTimeout(function(){b("Stratcom").invoke("m:kaios:spatialnav:refresh",null,null),h.snapFocusToUsernameTextField()},150)})},snapFocusToUsernameTextField:function(){var a=b("ge")("m_login_email");a=a?b("DOM").find(a,"input"):null;a instanceof HTMLElement&&a.focus()}};e.exports=h}),null); __d("MPasswordPlainTextToggle",["invariant","CSS","DOM","Stratcom"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={init:function(a,c,d,e){d!==null&&e!==null||g(0,4607);var f=a;a.tagName!=="INPUT"&&(f=b("DOM").scry(a,"input")[0]);b("Stratcom").listen("click","password-plain-text-toggle",function(a){f.type=="password"?(f.type="text",b("CSS").hide(d),b("CSS").show(e),f.focus()):(f.type="password",b("CSS").hide(e),b("CSS").show(d),f.focus()),a.kill()});b("Stratcom").listen(["m:passwordinput:autoclear","input"],"password-plain-text-toggle-input",function(a){f.value==""?b("CSS").hide(c):b("CSS").show(c),b("Stratcom").invoke("m:kaios:spatialnav:refresh",null,null)})}};e.exports=a}),null); __d("DamerauLevenshtein",[],(function(a,b,c,d,e,f){__p&&__p();a={DamerauLevenshteinDistance:function(a,b){__p&&__p();if(a.length===0)return b.length;if(b.length===0)return a.length;if(a===b)return 0;var c,d,e=[];e[0]=[];e[1]=[];e[2]=[];for(d=0;d<=b.length;d++)e[0][d]=d;for(c=1;c<=a.length;c++)for(d=1;d<=b.length;d++){e[c%3][0]=c;var f=a.charAt(c-1)===b.charAt(d-1)?0:1;e[c%3][d]=Math.min(e[(c-1)%3][d]+1,e[c%3][d-1]+1,e[(c-1)%3][d-1]+f);c>1&&d>1&&a.charAt(c-1)==b.charAt(d-2)&&a.charAt(c-2)==b.charAt(d-1)&&(e[c%3][d]=Math.min(e[c%3][d],e[(c-2)%3][d-2]+f))}return e[a.length%3][b.length]}};e.exports=a}),null); __d("BrowserPrefillLogging",["BanzaiLogger","DamerauLevenshtein","ge"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={initContactpointFieldLogging:function(a){this.contactpointFieldID=a.contactpointFieldID;this._updateContactpoint();this.serverPrefillContactpoint=a.serverPrefill;a=b("ge")(this.contactpointFieldID);if(a==null)return;a.addEventListener("input",this._mayLogContactpointPrefillViaDropdown.bind(this));window.addEventListener("load",this._mayLogContactpointPrefillOnload.bind(this));return},registerCallback:function(a){this.regeisteredCallbacks=this.regeisteredCallbacks||[],this.regeisteredCallbacks.push(a)},_invokeCallbacks:function(a,b){if(this.regeisteredCallbacks==null||this.regeisteredCallbacks.size===0)return;this.regeisteredCallbacks.forEach(function(c){c(a,b)})},initPasswordFieldLogging:function(a){this.passwordFieldID=a.passwordFieldID;this._updatePassword();a=b("ge")(this.passwordFieldID);if(a==null)return;a.addEventListener("input",this._mayLogPasswordPrefillViaDropdown.bind(this));window.addEventListener("load",this._mayLogPasswordPrefillOnload.bind(this))},updatePrefill:function(a,c,d){var e,f=(e=b("ge"))("prefill_source"),g=e("prefill_type"),h=e("first_prefill_source"),i=e("first_prefill_type"),j=e("had_cp_prefilled"),k=e("had_password_prefilled");e=e("prefill_contact_point");f!=null&&(f.value=c);g!=null&&(g.value=d);e!=null&&a!=null&&(e.value=a);i!=null&&(i.value==null||i.value=="")&&(i.value=d);h!=null&&(h.value==null||h.value=="")&&(h.value=c);j!=null&&(j.value==null||j.value==="false")&&d==="contact_point"&&(j.value="true");k!=null&&(k.value==null||k.value==="false")&&d==="password"&&(k.value="true")},_mayLogContactpointPrefillOnload:function(){this._updateContactpoint();if(this.previousContactpoint==null||this.previousContactpoint==="")return;var a=this.previousContactpoint===this.serverPrefillContactpoint?"server_prefill":"browser_onload";this._logBrowserPrefill(a,"contact_point");this._invokeCallbacks(a,"contact_point")},_mayLogPasswordPrefillOnload:function(){this._updatePassword();if(this.previousPassword==null||this.previousPassword==="")return;this._logBrowserPrefill("browser_onload","password");this._invokeCallbacks("browser_onload","password")},_mayLogContactpointPrefillViaDropdown:function(){__p&&__p();var a=b("ge")(this.contactpointFieldID);if(a==null||a.value==null)return;if(this._isBrowserPrefill(this.previousContactpoint,a.value)===!1){this._updateContactpoint();return}this._updateContactpoint();this._logBrowserPrefill("browser_dropdown","contact_point");this._invokeCallbacks("browser_dropdown","contact_point")},_mayLogPasswordPrefillViaDropdown:function(){__p&&__p();var a=b("ge")(this.passwordFieldID);if(a==null||a.value==null)return;if(this._isBrowserPrefill(this.previousPassword,a.value)===!1){this._updatePassword();return}this._updatePassword();this._logBrowserPrefill("browser_dropdown","password");this._invokeCallbacks("browser_dropdown","password")},_isBrowserPrefill:function(a,c){if(c==="")return!1;if(c===a)return!1;if(c.length===1||a.length===c.length+1||c.length===a.length+1)return!1;var d=b("DamerauLevenshtein").DamerauLevenshteinDistance(c,a);return d===a.length-c.length?!1:!0},_updateContactpoint:function(){var a=b("ge")(this.contactpointFieldID);this.previousContactpoint=a!=null&&a.value!=null?a.value:""},_updatePassword:function(){var a=b("ge")(this.passwordFieldID);this.previousPassword=a!=null&&a.value!=null?a.value:""},_logBrowserPrefill:function(a,c){var d=null;c==="contact_point"&&(d=this.previousContactpoint);a!=="server_prefill"&&this.updatePrefill(d,a,c);b("BanzaiLogger").create({signal:!0}).log("LoginEventsLoggerConfig",{event:"browser_autocomplete",prefill_contact_point:d,prefill_source:a,prefill_type:c})}};e.exports=a}),null);